//
//  C_RecentLabelView.m
//  音悦咖
//
//  Created by Best on 15/7/14.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "C_RecentLabelView.h"

@implementation C_RecentLabelView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)dealloc
{
    [_cleanButton release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self create];
    }
    return self;
}

- (void)create
{
    CGFloat height = self.frame.size.height;
    CGFloat width = self.frame.size.width;
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 10, 80, height - 10)];
    self.titleLabel.text = @"访问历史";
    self.titleLabel.textColor = [UIColor whiteColor];
    self.cleanButton = [UIButton buttonWithType:(UIButtonTypeSystem)];
    [self.cleanButton setTitle:@"清除" forState:(UIControlStateNormal)];
    self.cleanButton.frame = CGRectMake(width - 50, 10, 40, height - 10);
    [self addSubview:self.cleanButton];
    [self addSubview:self.titleLabel];
    [_titleLabel release];

}



@end
